package com.woniuxy01;

import java.util.Arrays;
import java.util.Random;

/**
 * @author 作者
 * @create 2025-06-05 9:32
 */
public class Test03 {
    public static void main(String[] args) {
        //获取当前时间毫秒数，1970-1-1 0点
        long start = System.currentTimeMillis();
        System.out.println("程序开始:"+start);
        for (int i = 0; i < 10000; i++) {
            int[] a={1,2,3,4,5};
//            System.out.println(Arrays.toString(a));
            a= Arrays.copyOf(a, 10);
//            System.out.println(Arrays.toString(a));

            int[] src={6,7,8,9,10};
            int srcPos=1;
            int[] dest=new int[10];
            System.arraycopy(src, srcPos, dest, 2, 4);
//            System.out.println(Arrays.toString(src));
//            System.out.println(Arrays.toString(dest));
        }
        test01();
        long end = System.currentTimeMillis();
        System.out.println("程序开始:"+end);
        System.out.println(end-start);

    }

    private static void test01() {
        if(true){
//            System.exit(0);
            return;
        }
    }
}
